home *** CD-ROM | disk | FTP | other *** search
- head 1.6;
- branch ;
- access ;
- symbols ;
- locks ;
- comment @ * @;
-
-
- 1.6
- date 92.03.01.10.27.06; author melling; state Exp;
- branches ;
- next 1.5;
-
- 1.5
- date 92.03.01.05.07.49; author melling; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 92.02.28.05.19.06; author melling; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 91.12.16.17.22.16; author melling; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 91.12.07.07.49.18; author melling; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 91.12.07.03.37.06; author melling; state Exp;
- branches ;
- next ;
-
-
- desc
- @Tetris 1.1
- @
-
-
- 1.6
- log
- @Release 1.3
- @
- text
- @
- #import "Piece.h"
- #import "Minimatrix.h"
-
- #define TETRIS_COLUMNS 10
- #define TETRIS_ROWS 25
- // There four different ways to view a piece: up, down, left, right
-
- #define MIN_LEVEL 0
- #define MAX_LEVEL 9
-
- @@interface TetMatrix:Minimatrix
- {
- BOOL pieceVisible;
- BOOL active;
- id thePiece; // The current piece; a Piece Object
- id scoreKeeper;
- id anmBitmap;
- id showNext; // The next piece object: NextMatrix.m
- id aCheater;
- id controlBox; // The box containing all of the controls
- float level;
- DPSTimedEntry timedEntryNum;
- BOOL gameRunning;
- BOOL colorWindow; // canStoreColor?
- double teDelay; // Determines how fast a piece will fall.
- float anm_gameover_delta; // The # pixels to move "Game Over" at a time
- id randomFields;
- }
-
- - initFrame:(const NXRect *)frameRect;
- - setupRandomFill:(int)max;
- - (BOOL)acceptsFirstResponder;
- - drawSelf:(const NXRect *)rects :(int)rectCount;
- - keyDown:(NXEvent *)theEvent;
-
- - removeFilledRows;
-
- - setPieceVisible:(BOOL)flag;
- - setScoreKeeper:keeper;
- - newGame:(int)theLevel;
- - pause:sender;
- - continue:sender;
- - stop:sender;
-
- - startTimedEntry;
- - stopTimedEntry;
-
- - free;
-
- @@end
- @
-
-
- 1.5
- log
- @*** empty log message ***
- @
- text
- @d28 1
- a28 1
-
- @
-
-
- 1.4
- log
- @*** empty log message ***
- @
- text
- @d27 2
- d32 1
- a32 1
-
- @
-
-
- 1.3
- log
- @*** empty log message ***
- @
- text
- @a7 1
- #define NUM_BITMAPS 4
- d21 1
- @
-
-
- 1.2
- log
- @Tetris 1.2
- @
- text
- @d20 2
- a21 1
- id showNext; // The next piece.
- d24 1
- a24 1
- BOOL teRunning;
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d7 1
- d17 1
- a17 1
- id thePiece;
- d20 1
- a20 1
- id showNext;
- d24 2
- a25 1
- double teDelay;
- @
-